package com.x_memteor.base_master.api;

import com.x_memteor.base_master.base.BaseEntity;
import com.x_memteor.base_master.base.BaseEntityWithBean;
import com.x_memteor.base_master.bean.response.HeartBean;
import com.x_memteor.base_master.bean.response.NewHeartBean;
import com.x_memteor.base_master.bean.response.TokenBean;
import com.x_memteor.base_master.bean.response.GetProfileBean;
import com.x_memteor.base_master.bean.response.UpWeightBean;


import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * @author: X_Meteor
 * @description: 类描述
 * @version: V_1.0.0
 * @date: 2017/4/7 0007 13:56
 * @company:
 * @email: lx802315@163.com
 */
public interface Api {

    @GET("get_token")
    Observable<BaseEntity<TokenBean>> getToken(@Query("sign") String sign);

    @GET("heartbeat")
    Observable<BaseEntityWithBean<HeartBean>> sendHeart(@Query("macid") String macid, @Query("sign") String sign);

    @GET("heartbeat")
    Observable<BaseEntityWithBean<NewHeartBean>> sendNewHeat(@Query("key") String key);

    @GET("up_weight")
    Observable<UpWeightBean> upWeight(@Query("macid") String macid, @Query("sign") String sign, @Query("weight") String weight);

    @GET("get_profile")
    Observable<GetProfileBean> getProfile(@Query("id") String id,@Query("macid") String macid,@Query("sign") String sign);

    @GET("up_result")
    Observable<GetProfileBean> upResult(@Query("macid") String macid, @Query("sign") String sign
            , @Query("id") String id, @Query("fats") String fats
            , @Query("water") String water, @Query("muscle") String muscle
            , @Query("skeleton") String skeleton, @Query("calory") String calory
            , @Query("internalOrganLevel") String internalOrganLevel, @Query("subcutaneousFat") String subcutaneousFat
            , @Query("protein") String protein, @Query("perfectWeight") String perfectWeight
            , @Query("leanBodyWeight") String leanBodyWeight);
}
